<template>
    <div>
        <swiper :options="swiperOption" class="czp">
			
          <swiper-slide 
				v-for='(item,index) in dataList'
				:key='index'
		  >
				<img :src="item.imgUrl" alt="">
		  </swiper-slide>
       
          <div class="swiper-pagination" slot="pagination"></div>
        </swiper>
    </div>
</template>

<script>
import 'swiper/dist/css/swiper.css'
import { swiper, swiperSlide } from 'vue-awesome-swiper'
export default {
  props:{
	dataList: Array,
  },
  data () {
    return {
      swiperOption: {
        pagination: {
          el: '.swiper-pagination',
          clickable: true
        },
        autoplay: {
          delay: 1500,
          stopOnLastSlide: false,
          disableOnInteraction: true
        }// 可选选项，自动滑动
      }
    }
  },
  components: {
    swiper,
    swiperSlide
  }
}
</script>

<style scoped>
img{
	width: 100%;
	height: 5.013333rem;
}
</style>